home *** CD-ROM | disk | FTP | other *** search
- Path: dragon.solect.com!usenet
- From: John Moore <john@affinityedge.com>
- Newsgroups: comp.lang.c++
- Subject: Problem with append.
- Date: Mon, 25 Mar 1996 10:42:58 -0500
- Organization: AffinityEdge.com
- Message-ID: <3156BF02.33A1@affinityedge.com>
- NNTP-Posting-Host: blackburn.affinityedge.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- I've been having a problem with appending to a file.
-
-
- out.open(filename, ios::app, 0);
-
- if (!out) {
- cout << "Cannot open ERROR log file.\n";
- return(FALSE);
- }
-
-
- out.close();
-
- This code works the first time, but if the file exists then the
- routine hangs indefinitely.
-
- Any Ideas ?
-
- Thanks
- John.
-